Clover coverage report - Flock Flock - 0.7-dev
Coverage timestamp: Thu Jan 30 2003 01:35:37 EST
file stats: LOC: 94   Methods: 12
NCLOC: 51   Classes: 1
This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
Item.java 0% 0% 0% 0%
 1   
 package net.sf.flock.impl;
 2   
 
 3   
 import java.net.URL;
 4   
 import java.util.Date;
 5   
 
 6   
 import net.sf.flock.FeedI;
 7   
 import net.sf.flock.ItemI;
 8   
 
 9   
 /**
 10   
  * @version $Revision$
 11   
  * @author $Author$
 12   
  */
 13   
 class Item implements ItemI {
 14   
 
 15   
     private final FeedI origin;
 16   
 
 17   
     private String title;
 18   
     private String description;
 19   
     private URL link;
 20   
     private Date creationTime;
 21   
 
 22  0
     public Item(FeedI origin) {
 23  0
         this.origin = origin;
 24   
     }
 25   
 
 26   
     /**
 27   
      * @see net.sf.flock.ItemI#getFeed()
 28   
      */
 29  0
     public FeedI getOrigin() {
 30  0
         return this.origin;    
 31   
     }
 32   
 
 33   
     /**
 34   
      * @see net.sf.flock.ItemI#getTitle()
 35   
      */
 36  0
     public String getTitle() {
 37  0
         return this.title;
 38   
     }
 39   
 
 40  0
     public void setTitle(String title) {
 41  0
         this.title = title;
 42   
     }
 43   
 
 44   
     /**
 45   
      * @see net.sf.flock.ItemI#getDescription()
 46   
      */
 47  0
     public String getDescription() {
 48  0
         return this.description;
 49   
     }
 50   
 
 51  0
     public void setDescription(String description) {
 52  0
         this.description = description;
 53   
     }
 54   
 
 55   
     /**
 56   
      * @see net.sf.flock.ItemI#getLink()
 57   
      */
 58  0
     public URL getLink() {
 59  0
         return this.link;
 60   
     }
 61   
 
 62  0
     public void setLink(URL link) {
 63  0
         this.link = link;
 64   
     }
 65   
 
 66   
     /**
 67   
      * @see net.sf.flock.ItemI#getCreationTime()
 68   
      */
 69  0
     public Date getCreationTime() {
 70  0
         return this.creationTime;
 71   
     }
 72   
 
 73  0
     public void setCreationTime(Date creationTime) {
 74  0
         this.creationTime = creationTime;
 75   
     }
 76   
 
 77   
     /**
 78   
      * Compare based on article title.
 79   
      * 
 80   
      * @see java.lang.Object#equals(java.lang.Object)
 81   
      */
 82  0
     public boolean equals(Object obj) {
 83  0
         if (!(obj instanceof ItemI)) {
 84  0
             return false;
 85   
         }
 86  0
         return this.getTitle().equals( ((ItemI)obj).getTitle() );
 87   
     }
 88   
 
 89  0
     public String toString() {
 90  0
         return "Item["+getTitle()+"]";
 91   
     }
 92   
 
 93   
 }
 94